$(function(){
	$("body").on("click",".language1",chanise);
	$("body").on("click",".language2",english);
	$("body").on("click",".language2",english);
	$("body").on("click",".button1",tab_cut1);
	$("body").on("click",".button2",tab_cut2);
	$("body").on("click",".button3",tab_cut3);
	
	$("body").on("click",".zhuanfa",zhuanfa);
	$("body").on("click",".meng2",quxiao);
	$("body").on("click",".menghui",quxiao);
	
});
var first = 0;
var sc_size = 0;
$(document).scroll(function(e) {
	if(first==0){
		sc_size = $(".detaillist0").offset().top
	}
	first++;
//	console.log("第一个值："+$(document).scrollTop());
//	console.log("第二个值："+$(".detaillist0").offset().top);
    if($(document).scrollTop()>sc_size){
        $(".detaillist0").css({"position":"fixed"});
        $(".detaillist0").css({"top":"10vw"});
        $(".detaillist0").css({"left":"0vw"});
    }
    else{
        $(".detaillist0").css({"position":"relative"});
         $(".detaillist0").css({"top":"0vw"});
        $(".detaillist0").css({"left":"0vw"});
    }
});
function zhuanfa(){
	$(".meng").css("display","block");
	$(".menghui").css("display","block");
	
}
function quxiao(){
	$(".meng").css("display","none");
	$(".menghui").css("display","none");
}
function english(){
	$(".language1").css("color","#faac14");
	$(".language2").css("color","#ffffff");
	$(".language1").css("background-color","#ffffff");
	$(".language2").css("background-color","#faac14");
}
function chanise(){
	$(".language2").css("color","#faac14");
	$(".language1").css("color","#ffffff");
	$(".language2").css("background-color","#ffffff");
	$(".language1").css("background-color","#faac14");
}
function tab_cut1(){
	$(".button1").css("color","#4d4d4d");
	$(".button1").css("border-width","0vw");
	$(".button2").css("color","#4d4d4d");
	$(".button2").css("border-width","0vw");
	$(".button3").css("color","#4d4d4d");
	$(".button3").css("border-width","0vw");
	$(this).css("color","#faac14");
	$(this).css("border-bottom","1vw solid #faac14");
	$(".goodsDetail01>div").css("display","none");
	$(".goodsDe_show").css("display","block");
	
}
function tab_cut2(){
	$(".button1").css("color","#4d4d4d");
	$(".button1").css("border-width","0vw");
	$(".button2").css("color","#4d4d4d");
	$(".button2").css("border-width","0vw");
	$(".button3").css("color","#4d4d4d");
	$(".button3").css("border-width","0vw");
	$(this).css("color","#faac14");
	$(this).css("border-bottom","1vw solid #faac14");
	$(".goodsDetail01>div").css("display","none");
	$(".goodstishi_close").css("display","block");
}
function tab_cut3(){
	$(".button1").css("color","#4d4d4d");
	$(".button1").css("border-width","0vw");
	$(".button2").css("color","#4d4d4d");
	$(".button2").css("border-width","0vw");
	$(".button3").css("color","#4d4d4d");
	$(".button3").css("border-width","0vw");
	$(this).css("color","#faac14");
	$(this).css("border-bottom","1vw solid #faac14");
	$(".goodsDetail01>div").css("display","none");
	$(".userSpeak_close").css("display","block");
}
